home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / delicious_bookmarks-2.0.64-fx.xpi / chrome / deliciousBookmarks.jar / content / ybJump.js < prev    next >
Encoding:
Text File  |  2008-06-19  |  612 b   |  13 lines

  1. function jumpToTag() {
  2.        var prefService =
  3.         Components.classes["@mozilla.org/preferences-service;1"]
  4.                   .getService(Components.interfaces.nsIPrefBranch);
  5.      var tagType = prefService.getCharPref("extensions.ybookmarks@yahoo.jump.tagType");
  6.      
  7.      if(tagType == "user") {
  8.         ybookmarksUtils.openLinkToNewTab(deliciousService.getUrl(deliciousService.getUserName() + "/" + document.getElementById('ybJumpControl').value));
  9.      }
  10.      else if(tagType == "recent") {
  11.         ybookmarksUtils.openLinkToNewTab(deliciousService.getUrl("tag/" + document.getElementById('ybJumpControl').value));
  12.      }
  13. }